<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<title>驴友网用户登录</title>

<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css" href="Css/bootstrap.css">
<script type="text/javascript" src="Js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="Js/bootstrap.js"></script>
<style type="text/css">
body {
	background-size: 100%;
	background-image: url(image/sight.jpg);
}
</style>
</head>

<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-2"></div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-md-8"></div>
			<div class="col-md-4" style="margin-top:200px;">
				<div class="panel panel-default" style="background:#CC9999">
					<div class="panel-body">
						<h3 class="text-center">账号密码登录</h3>
						<br />
						<form action="<c:url value='/loginServlet'/>" method="post">
							<c:choose>
								<c:when test="${cookie.flag.value.equals('ok')}">
									<input class="form-control input-lg " name="username"  value="${cookie.username.value}"
										type="text" placeholder="username" required="required" />

									<br />
									<input class="form-control input-lg" name="password" value="${cookie.password.value}"
										type="password" placeholder="password" required="required" />
									<div class="checkbox">
										<label> <input type="checkbox" name="remember"
											value="ok" checked="checked" />记住密码？
										</label>
									</div>
								</c:when>
								<c:otherwise>
									<input class="form-control input-lg " name="username" id="user"
										type="text" placeholder="username" required="required" />

									<br />
									<input class="form-control input-lg" name="password" id="pwd"
										type="password" placeholder="password" required="required" />
									<div class="checkbox">
										<label> <input type="checkbox" name="remember"
											value="ok" />记住密码？
										</label>
									</div>
								</c:otherwise>
							</c:choose>

							<input type="submit" class="btn btn-primary btn-lg btn-block"
								value="登录">


						</form>
					</div>
					<div class="panel-footer">
						<div class="row">
							<div class="col-md-9">
								<a href="find1.jsp">忘记密码</a>
							</div>
							<div class="col-md-3">
								<a href="register.jsp">马上注册</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
